﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SurveySystem.Core;
using System.Web.Security;

namespace SurveySystem.Web
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SurveySystemDataContext dc = CommonUtils.GetDc();

            GridView_Users.DataSource = dc.Users;
            GridView_Users.DataBind();

            
            GridView1_Groups.DataSource = dc.Groups;
            GridView1_Groups.DataBind();

            GridView_Members.DataSource = dc.Members;
            GridView_Members.DataBind();

            GridView_Surveys.DataSource = dc.Surveys;
            GridView_Surveys.DataBind();

            GridView_GroupAccesses.DataSource = dc.GroupAccesses;
            GridView_GroupAccesses.DataBind();

            GridView_Choices.DataSource = dc.Choices;
            GridView_Choices.DataBind();

            GridView_Answerss.DataSource = dc.Answers;
            GridView_Answerss.DataBind();
        }


    }
}
